package com.xiaoxx.model.vo.sys;


import com.xiaoxx.model.vo.jvm.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * jvm 信息类
 */
@Data
@ToString(callSuper = true)
@ApiModel(value = "ToolJvmInfoVO 对象", description = "常用工具文件管理")
public class ToolJvmInfoVO implements Serializable {

    private static final long serialVersionUID = 4827571724805823332L;

    @ApiModelProperty(notes = "cpu使用信息", position = 1)
    private CpuVO cpu;
    @ApiModelProperty(notes = "系统内存所有情况", position = 2)
    private RamVO ram;
    @ApiModelProperty(notes = "jvm内存使用情况", position = 3)
    private JvmRamVO jvmRam;
    @ApiModelProperty(notes = "服务器信息", position = 7)
    private ServerInformationVO serverInformation;
    @ApiModelProperty(notes = "JVM 程序信息", position = 8)
    private JvmInformationVO jvmInformation;
    @ApiModelProperty(notes = "文件信息", position = 9)
    private FileInfoVO fileInfo;


    @Data
    @ToString(callSuper = true)
    @ApiModel(value = "FileInfoVO", description = "6、系统--文件信息(GB)")
    public static class FileInfoVO implements Serializable {
        private static final long serialVersionUID = 4776903229464827233L;
        @ApiModelProperty(notes = "文件系统类型", position = 1)
        private String fileSysType;

        @ApiModelProperty(notes = "总大小", position = 3)
        private Double total;
        @ApiModelProperty(notes = "剩余空间", position = 4)
        private Double free;
        @ApiModelProperty(notes = "已使用空间", position = 5)
        private Double usable;
        @ApiModelProperty(notes = "usedRatio", position = 5)
        private Double usedRatio;
    }
}
